package com.yida.gwj.expend.outside.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 附件信息请求参数
 *
 * @author lgp
 * @date 2023-03-21
 */
@ApiModel(description = "附件信息请求参数")
public class BaseFileInfoDTO {

    private static final long serialVersionUID = 1L;


    private Long fileId;

    /**
     * 文件业务标识
     */
    @ApiModelProperty("文件业务标识")
    private String serverIdentification;

    /**
     * 上传文件名称
     */
    @ApiModelProperty("上传文件名称")
    private String fileName;

    /**
     * 文件路径
     */
    @ApiModelProperty("文件路径")
    private String fileUrl;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getServerIdentification() {
        return serverIdentification;
    }

    public void setServerIdentification(String serverIdentification) {
        this.serverIdentification = serverIdentification;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BaseFileInfoDTO{");
        sb.append("fileId=").append(fileId);
        sb.append(", serverIdentification='").append(serverIdentification).append('\'');
        sb.append(", fileName='").append(fileName).append('\'');
        sb.append(", fileUrl='").append(fileUrl).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append('}');
        return sb.toString();
    }
}
